package com.lanswon.dao;

import java.util.List;

import org.springframework.data.repository.query.Param;

import com.lanswon.entity.ImageVO;
import com.lanswon.entity.UserVO;;

public interface ImageMapper {
	int deleteByPrimaryKey(Long imgId);

	int insert(ImageVO record);

	int insertSelective(ImageVO record);

	ImageVO selectByPrimaryKey(Long imgId);

	int updateByPrimaryKeySelective(ImageVO record);

	int updateByPrimaryKeyWithBLOBs(ImageVO record);

	int updateByPrimaryKey(ImageVO record);

	ImageVO getImgByName(String imgName);

	List<ImageVO> load(Integer pageindex, Integer limit);

	List<ImageVO> loadByCondition(@Param("pageindex") Integer pageindex, @Param("limit") Integer limit,
			@Param("type") String type, @Param("content") String content);

	int count();

	int countByCondition(@Param("type") String type, @Param("content") String content);

}